<template>
{{person}}<br>
  <button @click="f">点我</button>
</template>

<script lang="ts" setup>
import {reactive} from "vue";

let person=reactive({
  name:'张三',
  age:18
})
const f=()=>{
  person={
    name:'李四',
    age:20
  }
}
</script>

<style>

</style>
